package com.beamfield.dao.lab;

import com.beamfield.model.ChemicalConfig;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface ChemicalConfigMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ChemicalConfig record);

    int insertSelective(ChemicalConfig record);

    ChemicalConfig selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ChemicalConfig record);

    int updateByPrimaryKey(ChemicalConfig record);

    List<ChemicalConfig> getChemicalConfigList(@Param("offset")Integer offset, @Param("limit")Integer limit, @Param("chemical_name")String chemical_name, @Param("config_date")String config_date, @Param("beam_id")Long beam_id);

    int getCount(@Param("chemical_name")String chemical_name, @Param("config_date")String config_date, @Param("beam_id")Long beam_id);

}